/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package holamundo;

/**
 *
 * @author Tarde
 */
public class Holamundo {
    
    private int a;
    private String nom = "Hola Mundo";
    
    
    public String getNom(){
        return nom;
    }
    public void setNom(String paramNom){
        nom = paramNom;
        
    }
    
    
    public int getA(){
        return a;
    }
    public void setA (int paramA){
        a = paramA;
    }
    
    
    
    public void ejecutar(){
    
        System.out.println(nom);
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Holamundo obj = new Holamundo();
        obj.a = 2;
        System.out.println(obj.a);
        obj.setNom("Hola otra vez");
        System.out.println(obj.getNom());
    }
}
